<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<title>测试</title>
</head>
<body>
   <script type="text/javascript">
   	var a="http://woniuchiyi.yop/"

   console.log(encodeURIComponent(a));
   </script>
</body>
</html>